package com.open.capacity.common.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.io.Serializable;
import java.util.Date;

/**
 * 问题表，用于记录问题信息
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
public class Question implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 问题Id,主键，自增
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
     * 问题标题
     */
    private String title;

    /**
     * 问题说明
     */
    private String introduce;

    /**
     * 题型 1单选 2多选 3主观
     */
    private Integer type;

    /**
     * 分值
     */
    private Integer questionValue;

    /**
     * 数据状态1:正常 2:逻辑删除
     */
    private Integer status;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

}

